﻿<?php require_once ("conn.php");?>
<ul>
<?php
	$sql = "select * from v_app_news order by date desc limit 0,5";
	$rs = mysql_query($sql);
	while ($row = mysql_fetch_array($rs)) {
		$encode = "utf-8";
		$id=$row["id"];
	?> 
		<li> <span style="float:left;" ><a href='newscontant.php?id= <?php echo($id) ?>'><?php echo($row["title"]); ?></a></span>
        <span class="idtime" style="float:right;"><?php echo($row["date"]); ?></span></li> 
<?php
}
?>     
</ul>  